<template>
  <div class="header">
    <div></div>
    <div class="title">{{ title }}</div>
    <div class="back" @click="$router.go(-1)">返回</div>
  </div>
</template>

<script>
export default {
  name: 'Header',
  props: {
    title: {
      type: String,
    },
  },
}
</script>

<style scoped>
.header {
  text-align: center;
  display: flex;
  display: -webkit-flex;
  justify-content: space-between;
  width: 100%;
}
.back {
  margin-right: 5px;
  margin-block-start: 0.67em;
  margin-block-end: 0.67em;
  width: 60px;
  background-color: lightgrey;
}
.title {
  font-size: 1.17em;
  font-weight: bold;
  margin-block-start: 0.67em;
  margin-block-end: 0.67em;
}
</style>
